﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="ComputerShopE3.Models" %>

<%--<script type="text/javascript" src="<% = Url.Content("~/Scripts/MicrosoftAjax.js") %>"></script>
<script type="text/javascript" src="<% = Url.Content("~/Scripts/MicrosoftMvcAjax.js") %>"></script>

<% Ajax.BeginForm(new AjaxOptions{InsertionMode = InsertionMode.Replace, UpdateTargetId = "CART", Url = Url.Action("AddToCart", "Cart")}); %>--%>

<fieldset>    
    <legend>Thêm sản phẩm vào giỏ</legend>
    <p>
        <%=Html.Hidden("idSanPham", ((SAN_PHAM)ViewData["SAN_PHAM"]).id)%>
        <%=Html.TextBox("SoLuong")%>
        <input type="submit" name="AddToCart" value="Thêm vào giỏ" />
    </p>
</fieldset>